# -*- coding: utf-8 -*-
"""
 ----------------------------------------
|File Name:     Method
|Author:        WYT
|date:          2021/6/3
 ----------------------------------------
|  Change Activity:
|                   2021/6/3:
-----------------------------------------
"""
from settings import base_path


class BM():
    # 获取 本机ip
    @staticmethod
    def get_host():
        from configparser import ConfigParser

        cfg = ConfigParser()
        cfg.read("{}\\config.ini".format(base_path))
        host_str = cfg.get("runtime", "host")
        return host_str
